-- goodsIdS,
-- splitChar,
-- timeout
redis.call('SELECT', 1);

local _goodsIdS = ARGV[1];
local _splitChar = ARGV[2];
local _timeout = ARGV[3];

for _id in string.gmatch(_goodsIdS, '(.-)'.. _splitChar) do
  redis.call('SETEX', 'goods:'.. _id, _timeout, '');
end

return 'OK';
